package com.example.graduation.service.impl;

import com.example.graduation.dao.JobSeekerMapper;
import com.example.graduation.entity.JobSeeker;
import com.example.graduation.service.JobSeekerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JobSeekerServiceImpl implements JobSeekerService {
    @Autowired
    private JobSeekerMapper jobSeekerMapper;

    @Override
    public List<JobSeeker> findAll() {
        return jobSeekerMapper.findAll();
    }

    @Override
    public JobSeeker findById(Integer id) {
        return jobSeekerMapper.findById(id);
    }

    @Override
    public JobSeeker findByEmail(String email) {
        return jobSeekerMapper.findByEmail(email);
    }

    @Override
    public int insert(JobSeeker jobSeeker) {
        return jobSeekerMapper.insert(jobSeeker);
    }

    @Override
    public int update(JobSeeker jobSeeker) {
        return jobSeekerMapper.update(jobSeeker);
    }

    @Override
    public int deleteById(Integer id) {
        return jobSeekerMapper.deleteById(id);
    }
} 